package com.tutorial.annotation.advice;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * 增强类
 * className: AnnoAdvice
 * author: GXW
 * date: 2025/7/30 09:50:04
 * description: TODO 增强类
 */
@Component
@Aspect
public class AnnoAdvice {
	@Around("execution(* com.tutorial.annotation.service.impl.*.*(..))")
	public void around(ProceedingJoinPoint joinPoint) throws Throwable {
		System.out.println("环绕前通知...");
		joinPoint.proceed();
		System.out.println("环绕后通知...");
	}
}
